package com.study.gesturepasswordsample;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.Toast;

import com.study.gesturepasswordsample.gesturePassword.GesturePasswordView;
import com.study.gesturepasswordsample.gesturePassword.OnPasswordCallBack;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        GesturePasswordView gpv_password = findViewById(R.id.gpv_password);

        gpv_password.setOnPasswordCallBack(new OnPasswordCallBack() {
            @Override
            public void callBack(String password) {
                Toast.makeText(MainActivity.this, password, Toast.LENGTH_LONG).show();
            }
        });
    }
}